	 
		$(document).ready(function() {
				
		positionFooter();
        
        $(window)
          .scroll(positionFooter)
          .resize(positionFooter);
        
        function positionFooter() {
          var docHeight = $(document.body).height() - $("#sticky-footer-push").height();
          if(docHeight < $(window).height()){
            var diff = $(window).height() - docHeight;
            if (!$("#sticky-footer-push").length > 0) {
              $("#general_footer").before('<div id="sticky-footer-push"></div>');
            }
            $("#sticky-footer-push").height(diff);
          } 
        }				
				
				
                                        var periods = [
          



	
	

     
	['04/01/2015', '06/01/2015'], 
	['07/01/2015', '21/01/2015'],
	['30/01/2015', '01/02/2015'],
	['13/02/2015', '16/02/2015'],
  ['16/02/2015', '18/02/2015'], 
	['25/02/2015', '02/03/2015'],
	['03/03/2015', '11/03/2015'],
  ['18/03/2015', '21/03/2015'], 
	['23/03/2015', '15/04/2015'],
	['20/04/2015', '23/04/2015'],
	['06/05/2015', '10/05/2015'],
	['13/05/2015', '19/05/2015'],
	['10/06/2015', '14/06/2015'],
	['23/06/2015', '02/07/2015'],
	['02/07/2015', '06/07/2015'],   
	['09/07/2015', '12/07/2015'],
	['14/07/2015', '18/07/2015'],
	['19/07/2015', '22/07/2015'],   
	['23/07/2015', '21/08/2015']




        ];    			
				
	var z = '11/01/2012'
	var d = Date.parseExact(z, "MM/dd/yyyy"); 

				
				
			

	


	
var SelectedDates = {};

for (var k = 0; k < periods.length; k++)
	{
	
	
var from = Date.parseExact(periods[k][0], "dd/MM/yyyy"); 
var to = Date.parseExact(periods[k][1], "dd/MM/yyyy"); 

if ((from == null) || (to == null)) { 
     alert('Date = ' + periods[k][0]+ ' or ' + periods[k][1] + ' malformed'); 
} 

	
		if ((Date.compare(from, to)==1) || (Date.compare(from, to)==0))
			{
				alert("Foute ingave in lijn " + k);
			}

		if ((Date.compare(from, Date.today())==1) || (Date.compare(from, Date.today())==0))
				{
					if (SelectedDates[from]>0)
						{
						SelectedDates[from] = SelectedDates[from] + 1;
						}
					else
						{
						SelectedDates[from] = 1
						}
				}


			
		var j = from
			for (i=0;i<1000;i++)
			  {
			  (from).add(1).days();
			  if (Date.compare((from), to)==0)
				{
				break;
				}
			  
				if ((Date.compare((from), Date.today())==1) || (Date.compare((from), Date.today())==0))
				{
					if (SelectedDates[(from)]>0)
						{
						SelectedDates[(from)] = SelectedDates[(from)] + 3;
						}
					else
						{
						SelectedDates[(from)] = 3;
						}				
				}				  
			  }

			  
		if ((Date.compare(to, Date.today())==1) || (Date.compare(to, Date.today())==0))
				{
					if (SelectedDates[to]>0)
						{
						SelectedDates[to] = SelectedDates[to] + 2;
						}
					else
						{
						SelectedDates[to] = 2;
						}
				}

	}

			
				
				
				
				var url_path=(window.location.pathname.split("/")[1]);
				if (url_path == "en")
				{
					$('#datepicker').datepicker({
						inline: true,
						showOtherMonths: false,
						beforeShowDay: function(date) {

							if (SelectedDates[date]==1) {
								return [true, "Highlighted", "Morning available"];
							}
							if (SelectedDates[date]==2) {
								return [true, "Highlighted2", "Afternoon available"];
							}
							if (SelectedDates[date]==3) {
								return [true, "Highlighted3", "Occupied"];
							}
							if (SelectedDates[date]>3) {
								return [true, "Highlighted4", "Dubbel Geboekt !!!"];
							}						
							else {
								return [true, '', 'Available'];
							}

						}
					});
				}
				else if (url_path == "fr")
				{
					$('#datepicker').datepicker({
						inline: true,
						showOtherMonths: false,
						dayNamesMin: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
						dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
						prevText: 'Précédent',
						nextText: 'Suivant', 
						monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
						beforeShowDay: function(date) {

							if (SelectedDates[date]==1) {
								return [true, "Highlighted", "Matinée libre"];
							}
							if (SelectedDates[date]==2) {
								return [true, "Highlighted2", "Après-midi libre"];
							}
							if (SelectedDates[date]==3) {
								return [true, "Highlighted3", "Occupée"];
							}
							if (SelectedDates[date]>3) {
								return [true, "Highlighted4", "Dubbel Geboekt !!!"];
							}						
							else {
								return [true, '', 'Libre'];
							}

						}
					});
				}
				else
				{
					$('#datepicker').datepicker({
						inline: true,
						showOtherMonths: false,
						dayNamesMin: ['Zon', 'Ma', 'Di', 'Woe', 'Do', 'Vr', 'Zat'],
						dayNames: ['Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'],
						prevText: 'Vorige',
						nextText: 'Volgende', 
						monthNames: ['Januari','Februari','Maart','April','Mei','Juni', 'Juli','Augustus','September','Oktober','November','December'],
						beforeShowDay: function(date) {

							if (SelectedDates[date]==1) {
								return [true, "Highlighted", "Voormiddag vrij"];
							}
							if (SelectedDates[date]==2) {
								return [true, "Highlighted2", "Namiddag vrij"];
							}
							if (SelectedDates[date]==3) {
								return [true, "Highlighted3", "Volzet"];
							}
							if (SelectedDates[date]>3) {
								return [true, "Highlighted4", "Dubbel Geboekt !!!"];
							}						
							else {
								return [true, '', 'Vrij'];
							}

						}
					});
				}	


				
				
				
			});
